package com.dreams.dream.service.impl;

import com.dreams.dream.dao.base.DelWeiboCommentInfoMapper;
import com.dreams.dream.pojo.base.Criteria;
import com.dreams.dream.pojo.base.DelWeiboCommentInfo;
import com.dreams.dream.service.DelWeiboCommentInfoService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DelWeiboCommentInfoServiceImpl implements DelWeiboCommentInfoService {
    @Autowired
    private DelWeiboCommentInfoMapper delWeiboCommentInfoMapper;

    private static final Logger logger = LoggerFactory.getLogger(DelWeiboCommentInfoServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.delWeiboCommentInfoMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public DelWeiboCommentInfo selectByPrimaryKey(String weiboCommentId) {
        return this.delWeiboCommentInfoMapper.selectByPrimaryKey(weiboCommentId);
    }

    public List<DelWeiboCommentInfo> selectByExample(Criteria example) {
        return this.delWeiboCommentInfoMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String weiboCommentId) {
        return this.delWeiboCommentInfoMapper.deleteByPrimaryKey(weiboCommentId);
    }

    public int updateByPrimaryKeySelective(DelWeiboCommentInfo record) {
        return this.delWeiboCommentInfoMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(DelWeiboCommentInfo record) {
        return this.delWeiboCommentInfoMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.delWeiboCommentInfoMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(DelWeiboCommentInfo record, Criteria example) {
        return this.delWeiboCommentInfoMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(DelWeiboCommentInfo record, Criteria example) {
        return this.delWeiboCommentInfoMapper.updateByExample(record, example);
    }

    public int insert(DelWeiboCommentInfo record) {
        return this.delWeiboCommentInfoMapper.insert(record);
    }

    public int insertSelective(DelWeiboCommentInfo record) {
        return this.delWeiboCommentInfoMapper.insertSelective(record);
    }
}